home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #2 / Monster Media No. 2 (Monster Media)(1994).ISO / bbs_util / bcrc106.zip / PCBTEST.BAT < prev    next >
DOS Batch File  |  1994-05-25  |  2KB  |  30 lines

  1. REM Download the PDFC100.ZIP File from the support board.
  2. REM It will generate a DOOR.SYS file for your PCB based
  3. REM System.  The first line calls this program to generate
  4. REM a DOOR.SYS file in this PCBTEST.BAT System.
  5. REM Dennis Flanigan of THE BARN BBS 714-348-1755
  6. REM helped me test out this file on his PCB Single Line System!
  7.  
  8. REM   NOTE!!! Comment out everything after the ; below!!!!!
  9.  
  10.  
  11. pdfc 1                          ;Make a DOOR.SYS file
  12. B-CRC %1                        ;Call B-CRC to check uploaded file
  13. IF ERRORLEVEL = 1 GOTO NOGOOD   ;If file fails GOTO NOGOOD section
  14. :build
  15. D:                              ;Change Drives to B-BUILD DRIVE
  16. CD\BCRC                         ;Change Directories to B-BUILD Database
  17. B-BUILD %1                      ;Evoke B-BUILD to add file to database
  18. C:                              ;Change back to main PCB directory
  19. cd\PCB
  20. :ziptest
  21. c:\ziplab\zlab.exe %1 c:\pcb c:\ziplab %2   ;Now run ZIPLAB if all ok!
  22. GOTO ALLDONE                    ; Skip to ALLDONE section        
  23. :NOGOOD                         ;NOGOOD Section if file failed B-CRC above
  24. COPY %1 D:\FAIL                 ;Copy the file to the FAIL directory
  25. ERASE %1                        ;ERASE the uploaded file
  26. COPY C:\PCB\DUMMY.TXT C:\PCB\PCBFAIL.TXT   ;Use a 80 byte file called DUMMY.TXT
  27.                                            ;that is copied to PCBFAIL.TXT when
  28.                                            ;File failed the B-CRC scan!
  29.                                            ;This tells PCB file is No Good. 
  30. :ALLDONE                       ;ALLDONE section exits the batch file.